3.736 \(\int \frac {(a+b x)^n}{x} \, dx\)

Optimal. Leaf size=35 \[ -\frac {(a+b x)^{n+1} \, _2F_1\left (1,n+1;n+2;\frac {b x}{a}+1\right )}{a (n+1)} \]

[Out]

-(b*x+a)^(1+n)*hypergeom([1, 1+n],[2+n],1+b*x/a)/a/(1+n)

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {65} \[ -\frac {(a+b x)^{n+1} \, _2F_1\left (1,n+1;n+2;\frac {b x}{a}+1\right )}{a (n+1)} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*x)^n/x,x]

[Out]

-(((a + b*x)^(1 + n)*Hypergeometric2F1[1, 1 + n, 2 + n, 1 + (b*x)/a])/(a*(1 + n)))

Rule 65

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((c + d*x)^(n + 1)*Hypergeometric2F1[-m, n +
 1, n + 2, 1 + (d*x)/c])/(d*(n + 1)*(-(d/(b*c)))^m), x] /; FreeQ[{b, c, d, m, n}, x] &&  !IntegerQ[n] && (Inte
gerQ[m] || GtQ[-(d/(b*c)), 0])

Rubi steps

\begin {align*} \int \frac {(a+b x)^n}{x} \, dx &=-\frac {(a+b x)^{1+n} \, _2F_1\left (1,1+n;2+n;1+\frac {b x}{a}\right )}{a (1+n)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 35, normalized size = 1.00 \[ -\frac {(a+b x)^{n+1} \, _2F_1\left (1,n+1;n+2;\frac {b x}{a}+1\right )}{a (n+1)} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x)^n/x,x]

[Out]

-(((a + b*x)^(1 + n)*Hypergeometric2F1[1, 1 + n, 2 + n, 1 + (b*x)/a])/(a*(1 + n)))

________________________________________________________________________________________

fricas [F]  time = 0.47, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (b x + a\right )}^{n}}{x}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^n/x,x, algorithm="fricas")

[Out]

integral((b*x + a)^n/x, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b x + a\right )}^{n}}{x}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^n/x,x, algorithm="giac")

[Out]

integrate((b*x + a)^n/x, x)

________________________________________________________________________________________

maple [F]  time = 0.04, size = 0, normalized size = 0.00 \[ \int \frac {\left (b x +a \right )^{n}}{x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)^n/x,x)

[Out]

int((b*x+a)^n/x,x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b x + a\right )}^{n}}{x}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^n/x,x, algorithm="maxima")

[Out]

integrate((b*x + a)^n/x, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.03 \[ \int \frac {{\left (a+b\,x\right )}^n}{x} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x)^n/x,x)

[Out]

int((a + b*x)^n/x, x)

________________________________________________________________________________________

sympy [B]  time = 1.60, size = 83, normalized size = 2.37 \[ - \frac {b b^{n} n \left (\frac {a}{b} + x\right ) \left (\frac {a}{b} + x\right )^{n} \Phi \left (\frac {b \left (\frac {a}{b} + x\right )}{a}, 1, n + 1\right ) \Gamma \left (n + 1\right )}{a \Gamma \left (n + 2\right )} - \frac {b b^{n} \left (\frac {a}{b} + x\right ) \left (\frac {a}{b} + x\right )^{n} \Phi \left (\frac {b \left (\frac {a}{b} + x\right )}{a}, 1, n + 1\right ) \Gamma \left (n + 1\right )}{a \Gamma \left (n + 2\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)**n/x,x)

[Out]

-b*b**n*n*(a/b + x)*(a/b + x)**n*lerchphi(b*(a/b + x)/a, 1, n + 1)*gamma(n + 1)/(a*gamma(n + 2)) - b*b**n*(a/b
 + x)*(a/b + x)**n*lerchphi(b*(a/b + x)/a, 1, n + 1)*gamma(n + 1)/(a*gamma(n + 2))

________________________________________________________________________________________